//
//  SISSLoginNetworkingManager.h
//  SISSAPP
//
//  Created by 优房网 on 2017/3/24.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>


#define kLoginNetworkingManager [SISSLoginNetworkingManager sharedManager]
@interface SISSLoginNetworkingManager : AFHTTPSessionManager

/**
 *  网络请求工具类全局访问点
 *
 *  @return AFHTTPSessionManager的实例
 */
+ (instancetype)sharedManager;

/**
 *  网络请求工具类GET请求的主方法
 *
 *  @param URLString 请求地址
 *  @param parameters 请求参数
 *  @param success   成功的回调
 *  @param faile     失败的回调
 */
- (void)GETWithURLString:(NSString *)URLString parameters:(NSDictionary *)parameters success:(void(^)(id responseObject))success faile:(void(^)(NSError *error))faile;

/**
 *  网络请求工具类POST请求的主方法
 *
 *  @param URLString 请求地址
 *  @param parameters 请求参数
 *  @param success   成功的回调
 *  @param faile     失败的回调
 */
- (void)POSTWithURLString:(NSString *)URLString parameters:(id)parameters success:(void(^)(id responseObject))success faile:(void(^)(NSError *error))faile;

- (void)uploadFilesWithURLStr:(NSString *)URLStr serverName:(NSString *)serverName imagesArray:(NSArray *)imagesArray parameters:(NSDictionary *)parameters success:(void (^)(id responseObject))successBlock failed:(void (^)(NSError *error))failedBlock;

@end
